From cef676dc53b59afdec3f306563d008aa189dac60 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Mon, 16 Jan 2006 22:11:21 +0000 Subject: [PATCH] Compiler warning fixes. --- gpsbabel/defs.h | 2 ++ gpsbabel/geoniche.c | 6 ++---- gpsbabel/ignrando.c | 2 +- gpsbabel/nmn4.c | 2 -- gpsbabel/tef_xml.c | 5 ----- 5 files changed, 5 insertions(+), 12 deletions(-) diff --git a/gpsbabel/defs.h b/gpsbabel/defs.h index 2e4fa2e5a..bf5f9304f 100644 --- a/gpsbabel/defs.h +++ b/gpsbabel/defs.h @@ -391,6 +391,8 @@ void track_disp_all(route_hdr, route_trl, waypt_cb); void route_free (route_head *); void route_flush( queue *); void route_flush_all(void); +void route_flush_all_routes(void); +void route_flush_all_tracks(void); route_head * route_find_route_by_name(const char *name); route_head * route_find_track_by_name(const char *name); unsigned int route_waypt_count(void); diff --git a/gpsbabel/geoniche.c b/gpsbabel/geoniche.c index 4bc249316..d415b0665 100644 --- a/gpsbabel/geoniche.c +++ b/gpsbabel/geoniche.c @@ -22,6 +22,7 @@ #include "defs.h" #include "coldsync/palm.h" #include "coldsync/pdb.h" +#include "jeeps/gpsmath.h" #include "garmin_tables.h" #include @@ -434,17 +435,14 @@ static void geoniche_read_bin(const struct pdb *pdb) { struct pdb_record *pdb_rec; - int ct = 0; - waypoint *waypt; /* Process records */ for (pdb_rec = pdb->rec_index.rec; pdb_rec != NULL; pdb_rec = pdb_rec->next) { char *vdata = (char *) pdb_rec->data; - int vlen = pdb_rec->data_len; struct tm created, visited; - int i, icon_nr, selected; + int icon_nr, selected; int latdeg, londeg; double lat, lon, altitude; waypoint *waypt; diff --git a/gpsbabel/ignrando.c b/gpsbabel/ignrando.c index 0325e3a4b..ca03b96dd 100644 --- a/gpsbabel/ignrando.c +++ b/gpsbabel/ignrando.c @@ -308,7 +308,7 @@ ff_vecs_t ignr_vecs = { ignr_rd_init, ignr_rw_init, ignr_rd_deinit, - ignr_rd_deinit, + ignr_rw_deinit, ignr_read, ignr_write, NULL, diff --git a/gpsbabel/nmn4.c b/gpsbabel/nmn4.c index bdd2c2a55..9079533c9 100644 --- a/gpsbabel/nmn4.c +++ b/gpsbabel/nmn4.c @@ -37,7 +37,6 @@ static FILE *fin; static FILE *fout; static char *fin_name, *fout_name; static int curr_rte_num, target_rte_num; -static int iter; #define MYNAME "navigon" @@ -253,7 +252,6 @@ static void nmn4_write_waypt(const waypoint *wpt) { char city[128], street[128], zipc[32], number[32]; - int zip = -1; if (curr_rte_num != target_rte_num) return; diff --git a/gpsbabel/tef_xml.c b/gpsbabel/tef_xml.c index a2e785981..8cdd55f3d 100644 --- a/gpsbabel/tef_xml.c +++ b/gpsbabel/tef_xml.c @@ -26,17 +26,12 @@ #include "defs.h" #include "xmlgeneric.h" -static char *deficon = NULL; - static waypoint *wpt_tmp = NULL; static int item_count = -1; static int waypoints = 0; static route_head *route = NULL; -static FILE *fd; -static FILE *ofd; - static char *routevia = NULL; static arglist_t tef_xml_args[] = -- 2.30.2